# -*- coding = utf-8 -*-
# @Time : 2020/7/19 16:36
# @Author : gxm


from parking_database.insert import input_entry_record,input_leave_record,query_is_carinpark_by_plate


def updateSelect(plate):
    if (query_is_carinpark_by_plate(plate)):
        # ret,parkingtime=input_leave_record(plate)#出库
        # print("false")
        return False

    else:
        # input_entry_record(plate)
        # parkingtime=0
        # print("true")
        return True
def export(plate):
    ret, parkingtime = input_leave_record(plate)#出库
    print("出库")
    return parkingtime
def inport(plate):
    input_entry_record(plate)
    print("入库")
    return 0




